Package com.fsf.news.utils
Class FleschUtilsTest
java.lang.Object
com.fsf.news.utils.FleschUtilsTest
Unit tests for the FleschUtils class.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static Stream<org.junit.jupiter.params.provider.Arguments> Provides test data for the testComputeFleschMetrics test method.(package private) voidtestComputeFleschMetrics(String input, com.fsf.news.model.stats.FleschMetrics expected) Tests the computeFleschMetrics method with various input texts.
-
Constructor Details
-
FleschUtilsTest
FleschUtilsTest()
-
-
Method Details
-
testComputeFleschMetrics
@ParameterizedTest @MethodSource void testComputeFleschMetrics(String input, com.fsf.news.model.stats.FleschMetrics expected) Tests the computeFleschMetrics method with various input texts.- Parameters:
input- The input textexpected- The expected Flesch metrics
-
testComputeFleschMetrics
Provides test data for the testComputeFleschMetrics test method.- Returns:
- A stream of test data
-